Hi everybody
Item itemRef
for itemRef in current Folder do{
if (type(itemRef) == "Formal"){
Module m = read(fullName(itemRef), false)
string currentName =name(m)
if (currentName== "toto"){
m."Name"= "titi"
}
}
}
dooors - Fri Feb 25 08:10:44 EST 2011 |
Re: How to Modify Module Name
The function to use is rename. From DXL Help:
string rename({Item i|Folder f|Project
p|ModName_ modRef},
string name,
string description)
bool rename(ModName_ modRef)
Operation
Renames the item specified by the first argument to name and associates it with description. The name argument must be an unqualified name. If the user does not have modify access to the item, the call fails.
The first form returns a null string on success; otherwise, an error message.
The second form is retained for compatibility with earlier releases. It returns true on success; otherwise, false.
Example
rename(folder "my folder", "public", "for review")
|
Re: How to Modify Module Name Try to rename a folder while its open in the left explorer pane, cannot do that either since YOU have it "open". Its also open if somebody has a module under it open.
|
Re: How to Modify Module Name llandale - Fri Feb 25 15:44:48 EST 2011
Paul Miller Melbourne, Australia |